﻿using System;

namespace GlobalStringFormatter.SampleConsole
{
    public enum USD {}
    public enum Euro {}

    class Program
    {
        static void Main(string[] args)
        {
            var gString = new GString<USD, int>(300, val => val.ToString());
            gString.AddFormatter(value => (value < 1000), value => string.Format("${0}.00", value));
            gString.AddFormatter(value => (value >= 1000 && value < 100000), value => string.Format("${0}k", value / 1000));

            Console.WriteLine(gString);
            Console.ReadLine();
        }
    }
}
